home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / dev / c / libiconv_src.lha / configure.in < prev    next >
Encoding:
Text File  |  2000-11-07  |  2.1 KB  |  89 lines

  1. dnl Copyright (C) 1999-2000 Free Software Foundation, Inc.
  2. dnl This file is part of the GNU ICONV Library.
  3. dnl
  4. dnl The GNU ICONV Library is free software; you can redistribute it and/or
  5. dnl modify it under the terms of the GNU Library General Public License as
  6. dnl published by the Free Software Foundation; either version 2 of the
  7. dnl License, or (at your option) any later version.
  8. dnl
  9. dnl The GNU ICONV Library is distributed in the hope that it will be useful,
  10. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. dnl Library General Public License for more details.
  13. dnl
  14. dnl You should have received a copy of the GNU Library General Public
  15. dnl License along with the GNU ICONV Library; see the file COPYING.LIB.  If not,
  16. dnl write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. dnl Boston, MA 02111-1307, USA.
  18.  
  19. AC_PREREQ(2.12)
  20.  
  21. AC_INIT(src/iconv.c)
  22. AC_CONFIG_HEADER(src/config.h)
  23. AC_PROG_MAKE_SET
  24.  
  25. dnl           checks for programs
  26.  
  27. AC_PROG_CC
  28. AC_PROG_CPP
  29. AC_PROG_GCC_TRADITIONAL
  30. CL_PROG_RANLIB
  31. CL_PROG_INSTALL
  32. CL_PROG_CP
  33. CL_PROG_LN
  34. CL_PROG_LN_S
  35.  
  36. dnl           check for host type
  37.  
  38. CL_CANONICAL_HOST(autoconf)
  39.  
  40. dnl           checks for UNIX variants that set DEFS
  41.  
  42. AC_AIX
  43. AC_MINIX
  44. AC_ISC_POSIX
  45.  
  46. dnl           check for build configuration
  47.  
  48. PACKAGE=libiconv
  49. AM_DISABLE_STATIC
  50. AM_PROG_LIBTOOL
  51.  
  52. dnl           checks for header files
  53.  
  54. dnl           checks for functions and declarations
  55.  
  56. CL_ICONV
  57. if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
  58.   ICONV_CONST=""
  59. else
  60.   ICONV_CONST="const"
  61. fi
  62. AC_SUBST(ICONV_CONST)
  63.  
  64. CL_WORDS_LITTLEENDIAN
  65.  
  66. dnl           check whether OS supports plug libraries
  67.  
  68. OS=""
  69. case "$host_os" in
  70.   linux*)   OS="linux" ;;
  71.   solaris*) OS="solaris" ;;
  72.   osf*)     OS="osf" ;;
  73. esac
  74. if test -n "$OS"; then
  75.   AC_SUBST(OS)
  76.   AC_SUBST(GCC)
  77.   PLUGLIB="libiconv_plug.so"
  78. else
  79.   PLUGLIB=""
  80. fi
  81. AC_SUBST(PLUGLIB)
  82.  
  83. if test -d "${srcdir}/tests"; then
  84.   TESTS_MAKEFILE=tests/Makefile
  85. else
  86.   TESTS_MAKEFILE=""
  87. fi
  88. AC_OUTPUT(Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h)
  89.